package aspectLog;

import org.springframework.stereotype.Component;

/**
 * Created by jack on 18/6/2.
 */
@Component
public class Singer {
    @LogTag
    public void sing_a(){
        System.out.println("sing_a");
    }
    @LogTag
    public Object sing_b(){
        System.out.println("sing_b");

        return new Object(){
            @Override
            public String toString() {
                return "$classname{}" + "HELLO EVERY BODY";
            }
        };
    }
    @LogTag
    public void sing_c(){
        System.out.println("sing_c");
    }

    public static void main(String[] args) {

    }
}
